<!--
 * @Author: yaoling 1871883713@qq.com
 * @Date: 2022-10-20 18:11:21
 * @LastEditors: yaoling 1871883713@qq.com
 * @LastEditTime: 2022-12-06 16:03:36
 * @FilePath: \company-world\src\views\noticeManagement\index.vue
 * @Description: 新闻管理
-->
<template>
  <div class="notice-management">
    <!-- 新闻查询 -->
    <Header @onSearch="onSearch" @onRefresh="onRefresh"></Header>
    <!-- 新闻管理表格 -->
    <Main ref="main"></Main>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import Header from './components/Header.vue'
import Main from './components/Main.vue'
/**
 * @desc:筛选
 */
const main = ref()
const onSearch = (data: string) => {
  main.value.onSearch(data)
}
/**
 * @desc:重置
 */
const onRefresh = () => {
  main.value.onRefresh()
}
</script>

<style lang="less" scoped>
.notice-management {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
</style>
